package com.ibeeking.found.file.api.feign;

import com.ibeeking.found.file.api.common.dto.OssPolicyDto;
import com.ibeeking.found.file.api.common.dto.OssPropDTO;
import com.ibeeking.found.file.api.feign.fallback.FileFeignBFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-file-b-server", path = "/b", fallbackFactory = FileFeignBFallbackFactory.class, decode404 = true)
public interface FileFeignBClient {

    /**
     * 获取oss配置项
     *
     * @return
     */
    @GetMapping(value = "/file/feign/v1/ossProp")
    ResponseResult<OssPropDTO> ossProp();
    /**
     * 获取oss配置项
     *
     * @return
     */
    @GetMapping(value = "/file/feign/v1/policy")
    ResponseResult<OssPolicyDto> policy();
}
